home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / nfs / amd / amd-5.2 / config / Configure < prev    next >
Encoding:
Text File  |  1990-06-23  |  1.8 KB  |  45 lines

  1. #!/bin/sh -
  2. #
  3. # Copyright (c) 1989 Jan-Simon Pendry
  4. # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  5. # Copyright (c) 1989 The Regents of the University of California.
  6. # All rights reserved.
  7. #
  8. # This code is derived from software contributed to Berkeley by
  9. # Jan-Simon Pendry at Imperial College, London.
  10. #
  11. # Redistribution and use in source and binary forms are permitted provided
  12. # that: (1) source distributions retain this entire copyright notice and
  13. # comment, and (2) distributions including binaries display the following
  14. # acknowledgement:  ``This product includes software developed by the
  15. # University of California, Berkeley and its contributors'' in the
  16. # documentation or other materials provided with the distribution and in
  17. # all advertising materials mentioning features or use of this software.
  18. # Neither the name of the University nor the names of its contributors may
  19. # be used to endorse or promote products derived from this software without
  20. # specific prior written permission.
  21. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  22. # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  23. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  24. #
  25. #    %W% (Berkeley) %G%
  26. #
  27. echo "Making ./arch and ./os-type executable ..."
  28. until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
  29. echo "Checking ./arch and ./os-type ..."
  30. echo ""
  31. arch="`sh ./arch 2>/dev/null`"
  32. os="`sh ./os-type 2>/dev/null`"
  33. case "$arch" in
  34. "") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
  35. esac
  36. case "$os" in
  37. "") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
  38. esac
  39. cat << %
  40. This machine appears to be a "$arch" running "$os".
  41. If that is correct just run make.
  42. If those are incorrect please edit ./arch and ./os-type
  43. %
  44. exit 0
  45.